<?php

/**
 * jwGallery form.
 *
 * @package    ##PROJECT_NAME##
 * @subpackage form
 * @author     ##AUTHOR_NAME##
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class jwPictureManagerForm extends sfForm
{
  public function configure()
  {
    $this->widgetSchema->setNameFormat('jw_picture_manager[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
    
    $this->getWidgetSchema()->setFormFormatterName( 'list' );
    $this->getWidgetSchema()->getFormFormatter()->setRowFormat( '<li class="jw_gallery_image" >%field%</li>' );
    $this->getWidgetSchema()->getFormFormatter()->setDecoratorFormat( '<ul class="jw_gallery_image_container" >%content%</ul>' );        
  }
}
